package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.SopTaskDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SopTaskDeviceMapper {
    int deleteById(@Param("id") Long id);

    int insert(SopTaskDevice record);

    int insertSelective(SopTaskDevice record);

    SopTaskDevice selectById(@Param("id") Long id);

    List<SopTaskDevice> selectByTaskId(@Param("taskId") Long taskId);

    List<SopTaskDevice> selectByDeivceUniqueIdAndType(@Param("deviceUniqueId") Long deviceUniqueId, @Param("type") Integer type, @Param("merId") Long merId);

    int updateByIdSelective(SopTaskDevice record);

    int updateById(SopTaskDevice record);
}